package jp.ne.iforce.android.wifioffload;

import static jp.ne.iforce.android.wifioffload.BarCodeActivity.TAG;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.view.Window;
import android.view.WindowManager;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.TextView;


public class PasswdActivity extends Activity implements OnClickListener{

	private Button append_button;		//送信ボタン

	private static String dl_pass;
	private TextView vdlPass;		//送信内容

   @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.passwd);

        // 画面を明るい状態に保つ
		Window window = getWindow();
		window.addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON);
		window.addFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN);

        Intent i = getIntent();
        dl_pass = i.getStringExtra("DL_PASS");

        //送信内容
        vdlPass = (TextView) findViewById(R.id.dlpass);
        vdlPass.setText(dl_pass);
        Log.d(TAG,"Pass:"+dl_pass);

        //終了ボタン
        append_button = (Button)findViewById(R.id.append_button);
        append_button.setOnClickListener(this);
    }

   public void onClick(View arg0) {
	   moveTaskToBack (true);
	}

   @Override
	protected void onPause() {
		super.onPause();
		finish();
	}

}